package com.iframework.model.json;

import com.iframework.tools.BaseTools;

public class Books {
	private String _id;

	private String author;

	private String cover;

	private String shortIntro;

	private String title;

	private String site;

	private String cat;

	private int banned;

	private int latelyFollower;

	private int latelyFollowerBase;

	private float minRetentionRatio;

	private String retentionRatio;

	public void set_id(String _id) {
		this._id = _id;
	}

	public String get_id() {
		return this._id;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public String getCover() {
		return this.cover;
	}

	public void setShortIntro(String shortIntro) {
		this.shortIntro = shortIntro;
	}

	public String getShortIntro() {
		return this.shortIntro;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getTitle() {
		return this.title;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public String getSite() {
		return this.site;
	}

	public void setCat(String cat) {
		this.cat = cat;
	}

	public String getCat() {
		return this.cat;
	}

	public void setBanned(int banned) {
		this.banned = banned;
	}

	public int getBanned() {
		return this.banned;
	}

	public void setLatelyFollower(int latelyFollower) {
		this.latelyFollower = latelyFollower;
	}

	public int getLatelyFollower() {
		return this.latelyFollower;
	}

	public void setLatelyFollowerBase(int latelyFollowerBase) {
		this.latelyFollowerBase = latelyFollowerBase;
	}

	public int getLatelyFollowerBase() {
		return this.latelyFollowerBase;
	}

	public void setMinRetentionRatio(int minRetentionRatio) {
		this.minRetentionRatio = minRetentionRatio;
	}

	public float getMinRetentionRatio() {
		return BaseTools.floatRound(this.minRetentionRatio);
	}

	public void setRetentionRatio(String retentionRatio) {
		this.retentionRatio = retentionRatio;
	}

	public String getRetentionRatio() {
		return this.retentionRatio==null?"0":this.retentionRatio;
	}
}
